package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.ProductSpecItem;
import org.jeecg.modules.company.facade.IProductSpecItemFacade;
import org.jeecg.modules.company.service.IProductSpecItemService;
import org.jeecg.modules.company.vo.ProductSpecItemVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 产品配置明细
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class ProductSpecItemFacadeImpl extends IFacadeImpl<ProductSpecItemVo, ProductSpecItem, IProductSpecItemService>  implements IProductSpecItemFacade<ProductSpecItemVo, ProductSpecItem> {
        @Autowired
        private IProductSpecItemService productSpecItemService;


         @Override
         public ProductSpecItem po2Vo(ProductSpecItemVo vo) {
                ProductSpecItem po = new ProductSpecItem();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public ProductSpecItemVo vo2Po(ProductSpecItem po) {
                ProductSpecItemVo vo = new ProductSpecItemVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
